package cn.IT.dao;

import java.util.List;

import cn.IT.domain.Topic;
import cn.IT.domain.User;

public interface ITopicDAO extends IBaseDAO<Topic>{
	  
	  //根据标题进行模糊搜索
	  public List<Topic> findByTitle(String searchContent);
	  
	  //根据产品类型进行模糊搜索
	  public List<Topic> findByType(String searchContent);
	  
	  //根据UserId进行搜索
	  public List<Topic> findByUser(User u);
      
	  //判断该标题是否存在
	  public Topic isTitleExist(Topic topic);

	  public List<Topic> findNewsByToUser(User u);
	  
}
